import Layout from '@/layouts';

export default [
  {
    path: '/kpzh',
    component: Layout,
    redirect: '/kpzh/science-base/base-my',
    meta: {
      title: '科普综合',
      isOrNot: true,
      // icon: 'view-module',
    },
    children: [
      {
        path: 'home',
        component: () => import('@/pages/kpzh/home.vue'),
        meta: {title: '首页', icon: 'view-module'},
      },
      {
        path: 'defend1',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/defend1/defend1',
        meta: { title: '赛事管理', icon: 'view-module'},
        children: [
          {
            path: 'defend1',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '报名管理', },
          },
          {
            path: 'defend2',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '赛事排序', },
          },
        ]
      },
      {
        path: 'defend2',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/defend2/defend1',
        meta: { title: '评审管理', icon: 'view-module'},
        children: [
          {
            path: 'defend1',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '设置考评分值'},
          },
          {
            path: 'defend2',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '专家评议'},
          },
          {
            path: 'defend3',
            component: () => import('@/pages/blank.vue'),
            meta: { title: '自动排名'},
          },
        ]
      },
      {
        path: 'science-base',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/science-base/base-my',
        meta: { title: '科普基地管理', icon: 'view-module'},
        children: [
          // {
          //   path: 'base-apply',
          //   component: () => import('@/pages/kpzh/science-base/base-pt-my.vue'),
          //   meta: { title: '科普基地信息录入 '},
          // },
          {
            path: 'base-index',
            component: () => import('@/pages/kpzh/science-base/base-index.vue'),
            meta: { title: '科普基地列表'},
          },
          {
            path: 'base-my',
            component: () => import('@/pages/kpzh/science-base/base-my.vue'),
            meta: { title: '我的科普基地'},
          },
        ]
      },
      {
        path: 'invest-unit',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/invest-unit/unit-my',
        meta: { title: '科普统计管理', icon: 'view-module'},
        children: [
          {
            path: 'unit-index',
            component: () => import('@/pages/kpzh/invest-unit/unit-index.vue'),
            meta: { title: '调查单位列表'},
          },
          {
            path: 'unit-my',
            component: () => import('@/pages/kpzh/invest-unit/unit-my.vue'),
            meta: { title: '我的调查单位'},
          },
        ]
      },
      {
        path: 'personnel',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/personnel/personnel-my',
        meta: { title: '科普人员管理', icon: 'view-module'},
        children: [
          {
            path: 'personnel-index',
            component: () => import('@/pages/kpzh/personnel/personnel-index.vue'),
            meta: { title: '科普人员列表'},
          },
          {
            path: 'personnel-my',
            component: () => import('@/pages/kpzh/personnel/personnel-my.vue'),
            meta: { title: '我的科普人员'},
          }
        ]
      },
      {
        path: 'expenditure',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/expenditure/expenditure-my',
        meta: { title: '科普经费管理', icon: 'view-module'},
        children: [
          {
            path: 'expenditure-index',
            component: () => import('@/pages/kpzh/expenditure/expenditure-index.vue'),
            meta: { title: '科普经费列表'},
          },
          {
            path: 'expenditure-my',
            component: () => import('@/pages/kpzh/expenditure/expenditure-my.vue'),
            meta: { title: '我的科普经费'},
          }
        ]
      },
      {
        path: 'site',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/site/site-my',
        meta: { title: '科普场地管理', icon: 'view-module'},
        children: [
          {
            path: 'site-index',
            component: () => import('@/pages/kpzh/site/site-index.vue'),
            meta: { title: '科普场地列表'},
          },
          {
            path: 'site-my',
            component: () => import('@/pages/kpzh/site/site-my.vue'),
            meta: { title: '我的科普场地'},
          }
        ]
      },
      {
        path: 'events',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/events/events-my',
        meta: { title: '科普活动管理', icon: 'view-module'},
        children: [
          {
            path: 'events-index',
            component: () => import('@/pages/kpzh/events/events-index.vue'),
            meta: { title: '科普活动列表'},
          },
          {
            path: 'events-my',
            component: () => import('@/pages/kpzh/events/events-my.vue'),
            meta: { title: '我的科普活动'},
          }
        ]
      },
      {
        path: 'education',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/education/education-my',
        meta: { title: '科普教育管理', icon: 'view-module'},
        children: [
          {
            path: 'education-index',
            component: () => import('@/pages/kpzh/education/education-index.vue'),
            meta: { title: '科普教育列表'},
          },
          {
            path: 'education-my',
            component: () => import('@/pages/kpzh/education/education-my.vue'),
            meta: { title: '我的科普教育'},
          }
        ]
      },
      {
        path: 'media',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/kpzh/media/media-my',
        meta: { title: '科普传媒管理', icon: 'view-module'},
        children: [
          {
            path: 'media-index',
            component: () => import('@/pages/kpzh/media/media-index.vue'),
            meta: { title: '科普传媒列表'},
          },
          {
            path: 'media-my',
            component: () => import('@/pages/kpzh/media/media-my.vue'),
            meta: { title: '我的科普传媒'},
          },
        ]
      },
    ],

  },

];
